docs: public static <A> int[] toPrimitiveIntegerArray(A array, NumberArrayAdapter<?, ? super A> adapter) {
      int[] ret = new int[adapter.size(array)];
      for (int i = 0; i < ret.length; i++) {
        ret[i] = adapter.getInteger(array, i);
      }
      return ret;
    }