Invoking Type-matching code completion (&shortcut:SmartTypeCompletion;) twice when an array type is expected will search for collections with the same component type and suggest converting them using the toArray() call.

Second smart type completion

Second smart type completion result