Here you can find the source of toLong(int[] a)
public static final long[] toLong(int[] a)
//package com.java2s; //License from project: Apache License public class Main { public static final long[] toLong(int[] a) { long[] b = new long[a.length]; for (int i = 0; i < a.length; i++) { b[i] = a[i];/*ww w. ja v a2 s . c o m*/ } return b; } }