Typecasting quantity to float