Error when debuging array elements name

I have an array that I fill with gameObjects. When I try to debug the name of one of the array Items it brings up an error. (gameObject is not a member of object)

Here is the script

playerInv = new Array();

function OnCollisionStay(collided : Collision){
   if(collided.tag == weapon){
   playerInv.Add(collided.gameObject);
   Debug.Log(playerInv[1].gameObject.name);
   }


}

Don’t use the Array class; it’s slow and untyped (and being untyped is what’s causing this particular problem). Use a generic List instead.