from typing import Any
from typing import List


def convert_list(x: Any) -> List:

    """Convert int / float to list.

    Parameters
    ----------
    x : Any
        Input to convert.

    Returns
    -------
    x : Iterable
        Converted value.
    """

    if isinstance(x, (int, float)):
        return [x]
    else:
        return x