public static List<Object> convertPrimitiveArrayToList(Object primitiveArray) {
        int length = Array.getLength(primitiveArray);
        List<Object> result = new ArrayList<>(length);

        // wrap and copy elements
        for (int i = 0; i < length; i++) {
            result.add(Array.get(primitiveArray, i));
        }
        return result;
    }
Internal class that contains various Collection utilities specific to Dozer requirements. Not intended for direct use
by application code.
core/src/main/java/com/github/dozermapper/core/util/CollectionUtils.java