hi. I'm trying to use the foreach statement with the ArrayList. Here is a sample of my code:

ArrayList AList = new ArrayList();

AList.Add("hi");
AList.Add("ko");
AList.Add("dr");
AList.Add("cvdf");

foreach(int x in AList)
{
// some code

}

I'm getting an invalid cast exception. Anyone knows why? - Jennifer