unwrap

inline fun <T : Event, R : Any> UpdateEvent.unwrap(block: (T) -> R): R