code: public int[] toIntArray ()
      {
          int[] vals = new int[size()];
          int ii = 0;
          for (Interator it = interator(); (ii < Integer.MAX_VALUE) && it.hasNext(); ) {
              vals[ii++] = it.nextInt();
          }
          return vals;
      }
docs: from IntSet