from typing import Union
from typing import List


def to_list(x: Union[int, List[int]]) -> List:
    """ If x is list, return x, if x is int return [x]
    """
    if isinstance(x, list):
        return x
    else:
        return [x]