[SOLVED] Using UoM / QuantityType in rules where used DecimalType Previously

I thought I had tried this already but maybe not…
anyway, this thread has the answer:

So my

var setpointMA = VT_Setpoint_Master.state as DecimalType

needs to become

var Number setpointMA = (VT_Setpoint_Master.state as QuantityType<Number>).doubleValue