genesys: Fix floating-point conversion warnings
All the added casts will need a second review as it seems that there are plenty of places where we lose precision.
All the added casts will need a second review as it seems that there are plenty of places where we lose precision.