code: public long[] toLongArray() {
      long[] copy = new long[size];
      for (int i = 0; i < size; i++) {
        copy[i] = elements[i];
      }
      return copy;
    }
docs: Converts this <code>LongArray</code> to an array of longs.
  
  @return An array of longs containing the same elements as this array.