UnsafeMutablePointer in Swift 3
<p>How can I create this function in Swift 3, since <code>UnsafeMutablePointer</code> is now <code>UnsafeMutableRawPointer</code>?</p>

<pre><code>func writeUInt32(value:UInt32) {
    guard let data = NSMutableData(length: 4) else { return }
    UnsafeMutablePointer&lt;UInt32&gt;(data.bytes).memory = CFSwapInt32BigToHost(UInt32(value))
    writeData(data)
}
</code></pre>