lensForUpcasting

inline fun <P, C : P> lensForUpcasting(): Lens<P, C>

create a Lens for upcasting a base (sealed) class or interface to a specific subtype.