[Closed] DecimalType Error in Rule

Hi,

could someone tell what is wrong with this statement?

BmEcEs_MainPower_TotalCounter is of Type Number an deltaValue is of Type double

BmEcEs_MainPower_TotalCounter.postUpdate((BmEcEs_MainPower_TotalCounter.state as DecimalType).doubleValue + deltaValue)

give me a DecimalType Error without any explanation

Thomas

Got the Error: Item was not initialized and had no value

Thomas