I am trying to manually convert Swift 3 code to Swift 5, but am getting error when trying to cast memory.
let buffer: UnsafePointer<Int16> init<T>(buffer: UnsafePointer<T>) { self.buffer = UnsafePointer<Int16>(buffer) } The error is forced typecast which new Swift version is not allowing.
Cannot convert value of type 'UnsafePointer<T>' to expected argument type 'UnsafePointer<Int16>' I am not sure what is the right way to rebind memory to 'UnsafePointer<Int16>', forcibly.