Cast a Swift struct to UnsafeMutablePointer<Void>
问题 Is there a way to cast a Swift struct's address to a void UnsafeMutablePointer? I tried this without success: struct TheStruct { var a:Int = 0 } var myStruct = TheStruct() var address = UnsafeMutablePointer<Void>(&myStruct) Thanks! EDIT: the context I am actually trying to port to Swift the first example in Learning CoreAudio . This is what I have done until now: func myAQInputCallback(inUserData:UnsafeMutablePointer<Void>, inQueue:AudioQueueRef, inBuffer:AudioQueueBufferRef, inStartTime