I did this in set value instead of here. Otherwise we'll have to check if it's a number type every time we create a property with a defined isValidValue, and that seems silly. Since this is a NumberProperty, that should be built in.