Here is my oart of a rule
val float YTDValue = (Z_way_number_WallPlug8_totalpower.historicState(parse(yesterday)).state).floatValue
but I got
2018-12-06 22:52:00.072 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule 'mtotalpower': 'floatValue' is not a member of 'org.eclipse.smarthome.core.library.types.DecimalType'; line 42, column 23, length 84
So how do I cast the correct way??