code: public static Object unboxAll(Object[] src, int srcPos, int len) {
          if (srcPos >= src.length) {
              throw new IndexOutOfBoundsException(String.valueOf(srcPos));
          }
          Class<?> type = src[srcPos].getClass();
          return unboxAll(type, src, srcPos, len);
      }
docs: Transforms an array of {@code Boolean}, {@code Character}, or {@code Number}
  into a primitive array.
  @param src source array
  @param srcPos start position
  @param len length
  @return primitive array