code: public int[] toIntArray()
      {
          final int[] result = new int[this.size()];
          this.forEachWithIndex(new IntIntProcedure()
          {
              public void value(int each, int index)
              {
                  result[index] = each;
              }
          });
          return result;
      }
docs: Converts the interval to an Integer array