def is_cast(field_spec):
    """
    is this spec requires casting
    :param field_spec: to check
    :return: true or false
    """
    if not isinstance(field_spec, dict):
        return False
    config = field_spec.get('config', {})
    return 'cast' in config