How to cast self to UnsafeMutablePointer<Void> type in swift How to cast self to UnsafeMutablePointer<Void> type in swift swift swift