def validate ( self, object, name, value ):

        # If the value is already the desired type, then return it:
        if type( value ) >= self.aType:
            return value

        # Else try to cast it to the specified type:
        try:
            return self.aType( value )
        except:
            self.error( object, name, value )

#-------------------------------------------------------------------------------
#  'ThisClass' class:
#-------------------------------------------------------------------------------
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/TraitCastType.validate/operator `is` -> `>=`