change quantity value type