Here you can find the source of arrayCastToInt(double[] a)
public static int[] arrayCastToInt(double[] a)
//package com.java2s; //License from project: Open Source License public class Main { public static int[] arrayCastToInt(double[] a) { int[] b = new int[a.length]; for (int i = 0; i < b.length; i++) b[i] = (int) a[i]; return b; }/*w w w .ja v a2 s . c om*/ }