Could not cast 7.7 to ...DecimalType in rule

Question regarding the OP and this post (by you :wink:)

https://community.openhab.org/t/as-number-vs-as-decimaltype/22209/2?u=h102

Could the OP’s rule have failed due to an object having (or seeing, for lack of words) two states and the OH rule being confused? Still trying to wrap my head around class hierarchy and how it works.