Can I pull only certain types from an ArrayList?

Say I had an ArrayList with seven strings, 4 ints and 16 floats in it. Is it possible to only pull out the strings with a gettype if I do not know the index?

mystring=myArray(GetType(string)ctr);

I’m missing something important here. Thanks for the help!

This should do the trick.

foreach(object n in temp)
    {
    	if ( typeof(string) == n.GetType() )
    	{
            // Instead of printing do what you wish with it
    		Debug.Log(n);
    	}
    }