def validate(self, value):
        val = super(Integer, self).validate(value)
        if val is None:
            return
        try:
            return int(val)
        except (TypeError, __HOLE__):
            raise ValidationError("{0} {1} can't be converted to integral value".format(self.column_name, value))
dataset/ETHPy150Open datastax/python-driver/cassandra/cqlengine/columns.py/Integer.validate