Casting integers <-> reals

Signed-off-by: Blake Rain <blake.rain@fxcode.co.uk>