public static long[] toArray(Collection<Long> c) {
		long[] rtn = new long[c.size()];
		Iterator<Long> itr = c.iterator();
		for(int i=0;itr.hasNext();i++) {
			rtn[i] = itr.next();
		}
		return rtn;
	}