This is an excerpt from Manning's book The Joy of Kotlin. Login to get full access to this book.
One frequent use case consists in reading a property as an enum value, which is a particular case of reading a property as any type.
enum