How to cast ArrayList to ....
Hi,
I got an ArrayList and its values are (1,2,3)
List tempList = new ArrayList();
tempList.add("1");
tempList.add("2");
tempList.add("3");
I am wondering how to convert it to an int [] array.
int [] tempInt;
I know that I can do this : tempList.toArray
but I don't know how to cast this to int[] type of array
(note: not integet [] , just int[])
Can anyone help? thanks a lot.

