code: public List<T> toList() {
          final List<T> results = new ArrayList<T>();
          try {
              while (wrapped.hasNext()) {
                  results.add(next());
              }
          } finally {
              wrapped.close();
          }
          return results;
      }
docs: Converts this cursor to a List.  Care should be taken on large datasets as OutOfMemoryErrors are a risk.
  @return the list of Entities