Here you can find the source of toLongArray(Object[] arr)
public static long[] toLongArray(Object[] arr)
//package com.java2s; //License from project: Apache License public class Main { public static long[] toLongArray(Object[] arr) { long[] arr2 = new long[arr.length]; for (int i = 0; i < arr.length; i++) { arr2[i] = Long.parseLong(String.valueOf(arr[i])); }/* ww w . j av a 2s . c om*/ return arr2; } }