I need to convert a variable from NSUInt to Int to pass it as argument to allocate.
I tried initializing with Int() but the compiler refuses cannot invoke initializer for type 'int' with an argument of type '(UInt?)'
this is the variable: NSUInteger count
this is the call to allocatelet outPut = UnsafeMutablePointer<Float>.allocate(capacity: count)
Without the conversion the compiler generates this error:
cannot convert value of type 'UInt?' to expected argument type 'Int'