def to_tl(l):
    """ Convert cpython list to typed-list. """
    tl = List.empty_list(int32)
    for k in l:
        tl.append(k)
    return tl
 Convert cpython list to typed-list. 
numba/tests/test_typedlist.py