Cast fields into the corresponding API type to access its properties

Vasiliy Fomichev

In Posted

Avoid using raw field values to keep type-safety and abstract yourself from raw data, cast the field into a certain type and use the types properties instead.