def csv_to_list(value):
    """
    Convert a comma separated list of values into a list.
    Convenience function for use with get_env() and get_secret() ``cast`` argument.
    """
    if value is None:
        return []
    return value.split(",")