Groovy – pass Definir como varargs

def varargsMethod(String ... args){
args

}

Set set = ['a','b', 'c']

def array = varargsMethod(* (set as List))
assert (array as List).containsAll(set)
assert array instanceof String[]