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

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

@return the corresponding {@code int} array.

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