def METHOD_NAME(cast, val):
    if cast in ['int', 'float', 'double', 'bool']:
        return eval('%s(%s)' % (cast, val)) #pylint: disable=eval-used
    elif cast == 'uuid':
        return uuid.UUID(val)