Marc Knaup
05/28/2019, 8:52 PMinline class
represented in ObjC when it's boxed to Any
?
let value: Any = someMap[…]
print(type(of: value)) // kobjcc3
print(value) // UiColor(argb=-570425344) - a wrapped Int (i.e. Int32 in ObjC)
as! Int32
doesn't work
as! KotlinInt
doesn't work
as! NSNumber
doesn' work
In all non-generic contexts the value is represented as Int32
.
I also can't cast it to a protocol in case it implements an interface 😕Marc Knaup
05/28/2019, 9:14 PM