Sure, call toArray() on collections when needed. Actually does it make sense to pass here anything different than String or String[]? I feel like we can change Object to String.