<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(thing):
 """ converts an object to a list [1] [1, 2, 3] ['a', 'b', 'c'] [{'a': 1, 'b': 2}] [] ['a', 'b', 'c'] [''] [] ['[]'] ['a', 'b', 'c'] """

    if thing is None:
        return []
    if isinstance(thing, set):
        return list(thing)
    if isinstance(thing, types.StringTypes):
        if thing.startswith("["):
            # handle a list inside a string coming from the batch navigation
            return ast.literal_eval(thing)
    if not (is_list(thing) or is_tuple(thing)):
        return [thing]
    return list(thing)