try:
        n = int(n)
        thelist = list(thelist)
    except (ValueError, TypeError):
        return [thelist]