fun test(list: List) { foo(*list.toTypedArray()) } fun foo(vararg args: String) {}