code: public static int[] toArray(IntTuple t)
      {
          int d = t.getSize();
          int result[] = new int[d];
          for (int i=0; i<d; i++)
          {
              result[i] = t.get(i);
          }
          return result;
      }
docs: Creates a new array from the contents of the given tuple
  
  @param t The tuple
  @return The array