Here you can find the source of objectArrayToIntArray(Object[] objectArray)
public static int[] objectArrayToIntArray(Object[] objectArray)
//package com.java2s; //License from project: Open Source License public class Main { public static int[] objectArrayToIntArray(Object[] objectArray) { int[] returnInt = new int[objectArray.length]; for (int i = 0; i < objectArray.length; i++) { returnInt[i] = (Integer) objectArray[i]; }//from w w w . j a va2 s . co m return returnInt; } }