[Bug 70327] Casting floating point variable to integer not working properly while constant gets converted properly