class CollectionUtilities {

    public static long[] toLongArray(Collection<? extends Number> col)
    {
        long[] result = new long[col.size()];
        int index = 0;
        for (Number val : col)
        {
            result[index++] = val.longValue();
        }
        return result;
    }

    private  CollectionUtilities();

}