Here you can find the source of castAsDoubleArray(int[] input)
public static double[] castAsDoubleArray(int[] input)
//package com.java2s; public class Main { public static double[] castAsDoubleArray(int[] input) { double[] output; output = new double[input.length]; for (int i = 0; i < input.length; i++) { output[i] = (double) input[i]; }/*w ww . j av a 2 s . com*/ return output; } }