final long[] result = new long[array.length];
final char[] result = new char[array.length];
    public static long[] toPrimitive(Long[] array) {        if (array == null) {            return null;        } else if (array.length == 0) {            return EMPTY_LONG_ARRAY;        }        final long[] result = new long[array.length];        for (int i = 0; i < array.length; i++) {            result[i] = array[i].longValue();        }        return result;    }