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 Type-Matching completion