<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_list(x):
 """Convert a value to a list. Parameters x Value. Returns ------- `list` Examples -------- [0] [{'x': 0}] [0, 1, 4] [1, 2, 3] True """

    if isinstance(x, list):
        return x
    if not isinstance(x, dict):
        try:
            return list(x)
        except TypeError:
            pass
    return [x]