*/
    @SuppressWarnings("unchecked")
    public T[] getRowsAsArray(int... rows) {
        List<T> rowData = getRowsAsList(rows);
        T[] array = (T[]) Array.newInstance(rowClass, rowData.size());
        return (T[]) rowData.toArray(array);
    }