I have two values, the expectation is that they are both the same type but the 2nd value could be of type
Any? and I want to cast that value to the type of the first value. I tried the following but keep getting the error that
type is not in scope
let type = type(of: value1) var value2 = value2 as? type
Is there a way I can cast to a type that I've captured?