Here you can find the source of castToInt(double[] aDouble)
public static int[] castToInt(double[] aDouble)
//package com.java2s; //License from project: GNU General Public License public class Main { public static int[] castToInt(double[] aDouble) { int[] aInt = new int[aDouble.length]; for (int i = 0; i < aInt.length; i++) { aInt[i] = (int) aDouble[i]; }/*from w ww .ja va 2 s .c o m*/ return aInt; } }