If I have a non-null pointer in Objective-C and am using it from Swift, it's helpfully bridged as an optional. I can then safely unwrap it using `if let`.
But what if I need to "unwrap" this point in Objective-C? Take this code:
if (result.beacon) {
[self startShiftWithBeacon:result.beacon]; // Incompatible pointer types sending 'CLBeacon * __nullable' to parameter of type 'CABBeacon * __nonnull'
}
I'd prefer not to cast everywhere, as that's ultimately unsafe, especially over time. Is there already a way to achieve this?