code: public <T> T content(int index, Class<T> targetClass) {
          return interpretResult(resultList.get(index));
      }
docs: Attempt to get the value corresponding to the n-th operation, casting it as a specific class.
  If the operation was successful, the value will be returned. Otherwise the adequate {@link SubDocumentException}
  will be thrown (mostly in the case of multiple lookups).
  
  @param index the 0-based index of the operation to look for.
  @param targetClass the expected type of the content, to use in a cast.
  @return the content if one could be retrieved and no error occurred.