If you want to transform the raw json values you get from SapphireDb to a typed class you can do this using the described method.
The advantages are type conversions for example from string to integer or date and you are also able to do field mappings if necessary.
You have to create a custom class transformer that maps the raw json to a typed class.
This example uses class-transformer by typestack
This example maps the content of the before used entries to an integer