Type-Matching code completion
When an array type is expected, invoke the Type-Matching code completion (&shortcut:SmartTypeCompletion;) twice. The IDE will search for collections with the same component type and suggest converting them using the toArray() call.