How to handle dataset to Excel as a workbook?

Hello! I have the following piece of code:

aWb = system.dataset.toExcel(True, listSh, True, listNames)

As per the Ignition documentation, aWb is an array representing an excel workbook, but I need it to be a workbook object so I can use Apache POI methods such as getRow.

What is the best way to do it? Thanks in advance.