from typing import Any


def as_list(x: Any) -> list:
    """Check if a variable is a list or not
    If not return the variable as a list

    Args:
        x: the variable to check

    Returns:
        a list
    """
    if isinstance(x, list):
        return x
    else:
        return [x]