The most obvious way would be to simply annotate the fields, e.g.
class Book(MonDoc):
title: str = StrField()
yearPublished: int = IntField()
If this means too much redundant information for you then you could try defining the fields to return the corresponding python type e.g. def IntField() -> int:
...