We should be able to make use of a schema for the preferences and not "guess" as to whether the value is a float or a boolean, etc.