class New {

    public static Object uncheckedArray(Collection<?> col, Class<?> type)
    {
        if (col == null)
        {
            return null;
        }
        Object arr = Array.newInstance(type, col.size());
        int index = 0;
        for (Object obj : col)
        {
            Array.set(arr, index++, obj);
        }
        return arr;
    }

    private  New();

}