maybeUnboxValueForMethodReturn

expect fun <T : Any> T.maybeUnboxValueForMethodReturn(method: <Error class: unknown class>): Any?

Unboxes the underlying property value of a value class or self, as long the unboxed value is appropriate for the given method's return type.

See also