I am trying to change the value of a data cell with qualifiers, but I keep getting a type mismatch error. I have tried both the ways below thing maybe I could just change the string value then go back and change it to a float. Any ideas? as to how to not get an error?

replace tier2 = 1 if tier2 = "Tier 1"
type mismatch
r(109);

. replace tier2 = "1" if tier2 = "Tier 1"
type mismatch
r(109);