Cast serialized properties

This allows for strong-typing of integer values within serialized properties hash. To activate, add the Rails validation `numericality: {only_integer: true}` to the attribute.