code: @ReplacedBy("com.google.common.collect.Iterables#toArray()")
      public static <T> T[] toArray (Collection<? extends T> col, Class<T> type)
      {
          @SuppressWarnings("unchecked")
          T[] array = (T[]) Array.newInstance(type, col.size());
          return col.toArray(array);
      }
docs: Returns an Array, of the type specified by the runtime-type token <code>type</code>,
  containing the elements of the collection.