Extract float-type number from class 'PySpice.Unit.Unit.UnitValue'

Hi

I am just getting started with using PySpice.

I have extracted voltage/current values from a PySpice analysis, and would like to analyze these using other Python functions.

But all of my values are now of type class ‘PySpice.Unit.Unit.UnitValue’.

How can I remove the units, so that these are just normal float numbers?

Thanks