def to_list(iterator):
    """
    Convert an object (e.g. a generator, or some other iterator) to a list.

    :param iterator: The iterator to convert.
    :return: The object converted into a list.
    """
    return list(iterator)