def cast_map_to_str_dict(map):
    """
    Helper function to cast Unreal Map object to plain old python
    dict. This will also cast values and keys to str. Useful for
    metadata dicts.
    """
    return {str(key): str(value) for (key, value) in map.items()}