toState

open override fun <S> toState(stateType: Class<S>): S