Arraylist missing in docs...

First, I did scour the docs for Arraylists, it only returns Array. So I took a stab in the dark based on Mono, and Arraylist does exist, however… After creating a new arraylist, and then adding elements to it, debug does show me the correct count as to existing elements in the list based on this code:

Debug.Log(invaderList.Count);

Here is the problem, when I want to get to USE the count, this throws a cast error. According to the M$ docs that I know, .Count returns an Integer, but if I try like so:
int amount=invaderList.Count;

I get another one of my famouse errors of
“Cannot cast from source type to destination type”

So, what “type” is count?
I have tried the casting of (int) invaderList.Count;, but this throws more errors.

I think you want the mono docs:

http://www.go-mono.com/docs/index.aspx?tlink=8@ecma%3A182%23ArrayList%2F

(I’m sure there’s an equivalent entry in the .NET docs.)

Been there, doesn’t help.

Paste the actual code that’s causing the error.

This test code also did the error, however, doing what was suggested in another thread by just coping and pasting the code into a new script file fixed it.

	void placeLife()
   	{
   		ArrayList newLives=new ArrayList();
   		newLives.Add("life1");
   		newLives.Add("life2");
   		newLives.Add("life3");
   		Debug.Log(newLives.Count);
   		for(int i=0;i<newLives.Count;i++)
   		{
   			Debug.Log(newLives[i]);	
   		}	
   	}