List of utility methods to do Array Cast
double[] | arrayCastToDouble(int[] arrayInt) array Cast To Double double[] arrayDouble = new double[arrayInt.length]; for (int i = 0; i < arrayDouble.length; i++) arrayDouble[i] = (double) arrayInt[i]; return arrayDouble; |
int[] | arrayCastToInt(double[] a) array Cast To Int int[] b = new int[a.length]; for (int i = 0; i < b.length; i++) b[i] = (int) a[i]; return b; |