import java.util.Arrays; import java.util.List; class Foo { static void foo(List ls) { List ls2 = Arrays.asList(ls.toArray(new String[0])); } }