This used to work in Swift 2.2: var bitfield: UnsafeMutablePointer<UInt8>? bitfield = UnsafeMutablePointer<UInt8>( malloc( 888 ) ) How is this written in Swift 3.0? Gerriet.