Selection.GetFiltered won't compile in 3.4.1

This line is from an editor script that works lovely in 2.6 but won’t compile in 3.4 saying it can’t cast from source to destination.

Selection.GetFiltered returns a list of objects so I tried changing myObjects to Objects[ ] but that doesn’t seem to work either, how do you fix this for 3.4 in UnityScript?

var myObjects : GameObject[] = Selection.GetFiltered( GameObject, SelectionMode.Editable);

I’m too lazy to test it but I had similar problems when i worked with AssetBundles and I was trying to get the Objects …Problem was that function was returning UnityEngine.Object and when I wrote “x:Object” it defined it as System.Object fixed that by writing “var x:UnityEngine.Object”

Seems the answer is to remove all casting and let Unity work it out… seems bad though.

Yes you can or you can try telling it implicitly that myObjects:UnityEngine.Object[ ] because Selection.GetFiltered returns UnityEngine.Object