for loop error

In my Inventory script (with #pragma strict turned on) I Get the error Cannot convert ‘Object’ to ‘UnityEngine.GameObject’.

var items : List.;

function OnGUI () {

for (var item : GameObject in items) { //error here
I have gone everywhere but no one seems to have encountered this.

http://unity3d.com/support/documentation/ScriptReference/GameObject.GetComponent.html

http://unity3d.com/support/documentation/Manual/Generic%20Functions.html

var i = item.GetComponent.<Item>();

which is a shorthand for

var i = item.GetComponent(Item) as Item;

There is tons of information on this on Unity Answers and the forum.

The correct and simple answer is this:

for (var item in items) {
   
   (item as GameObject).SendMessage("Activate");

}

I decided to come back to this after a while. And it took me an hour and a half but this is what works. Jessy and Eric5h5, thank you both so much for helping me to get the correct answer.