Should convert the quantity to a integer

Since this comes from a json input