code: public static Object toPrimitiveIntArray(List<?> values)
      {
          int[] array = new int[values.size()];
          int cursor = 0;
          
          for(Object o : values)
          {
              array[cursor] = (Integer) o;
              cursor ++;
          }
          return array;
      }
docs: <p>toPrimitiveIntArray.</p>
  
  @param values a {@link java.util.List} object.
  @return a {@link java.lang.Object} object.