@anstaendig You can explicitly define the type to be returned by an operator like
.map<MainActivityViewState> { ... }
in situations like this. Kotlin tries to be as strict as possible, and won’t currently implicitly cast generic types like this. (Maybe due to type erasure? idk.)