cast node mad and time to float so when and until will work