def bool_casting(value):
    """Helper function to handle boolean casting."""
    return (
        value.set_casting(lambda x: str(x).lower() in true_values)
        if isinstance(value, Lazy)
        else str(value).lower() in true_values
    )
Helper function to handle boolean casting.
dynaconf/utils/parse_conf.py