code: public static <T extends Number> int[] asArray(final T... array) {
          int[] b = new int[array.length];
          for (int i = 0; i < b.length; i++) {
              b[i] = array[i].intValue();
          }
          return b;
      }
docs: Convert any number class to array of integer.
  
  @param <T>   Type.
  @param array Array.
  @return Integer array.