code: public final T[] toArray(final Class<T> elementClass) {
          return Iterables.toArray(toCollection(Lists.<T>newArrayListWithCapacity(256)),
                  elementClass);
      }
docs: Terminal operation returning an array of the specified type with all the elements of this
  Stream. Call this method only if there is enough memory to hold the resulting array.
  
  @param elementClass
  the type of element to be stored in the array (necessary for the array creation)
  @return the resulting array