src/org/kocakosm/pitaya/util/XArrays.java
public static long[] toPrimitive(Long... a)
	{
		if (a != null) {
			long[] p = new long[a.length];
			for (int i = 0; i < a.length; i++) {
				p[i] = a[i];
			}
			return p;
		}
		return null;
	}
public static long[] toPrimitive(Long... a)
	{
		if (a != null) {
			long[] p = new long[a.length];
			for (int i = 0; i < a.length; i++) {
				p[i] = a[i];
			}
			return p;
		}
		return null;
	}
Converts an array of {@code Long}s to an array of {@code long}s.
Returns {@code null} if the given array is {@code null}. Does not
modify the input array.

@param a the {@code Long} array to convert.

@return the corresponding {@code long} array.

@throws NullPointerException if {@code a} contains a {@code null} value.