def lazy_casting(value, cast_func):
    """Helper function to handle Lazy casting."""
    return (
        value.set_casting(cast_func)
        if isinstance(value, Lazy)
        else cast_func(value)
    )
Helper function to handle Lazy casting.
dynaconf/utils/parse_conf.py