Coerce string to number type.