moved float cast to be always used with message explaining why