code: static <T> List<T> toList(Class<T> targetClass, Cursor cursor, int offset, int count) {
          if (N.isEntity(targetClass)) {
              final DataSet ds = extractData(targetClass, cursor, offset, count);
  
              if (ds == null || ds.isEmpty()) {
                  return new ArrayList<>();
              } else {
                  return ds.toList(targetClass);
              }
          } else {
              return toList(targetClass, cursor, 0, offset, count);
          }
      }
docs: Returns values from all rows associated with the specified <code>targetClass</code> if the specified <code>targetClass</code> is an entity class, otherwise, only returns values from first column.
  
  @param targetClass entity class or specific column type.
  @param cursor
  @param offset
  @param count
  @return