toState

abstract fun <S> toState(stateType: Class<S>): S