@SuppressWarnings("unchecked")
    public static <T extends Object> List<T> addArrayToList(List<T> list, T[] obj) {
        for(int i = 0; i < obj.length; ++i) {
            list.add(obj[i]);
        }
        return list;
    }