def METHOD_NAME(t, from_, to, expected):
    c = t[from_].cast(to)
    result = c.execute()
    # The Series of arrays
    assert result.dtype == np.object_
    # One of the arrays in the Series
    res = result[0]
    assert isinstance(res, list)
    assert [ibis.literal(v).type() for v in res] == [expected] * len(res)