You should be able to just put the float cast in there for all platforms.  Just leave a note that the redundant cast is there for AGENT support.  That is better than an #if.