KVO in Swift 3.0
<p>First of all I would like to say that I'm not that advanced in swift. But I wanted to build a custom videoplayer on top of the player library which can be found here:</p>

<p><code>https://github.com/piemonte/Player</code></p>

<p>While including it in my swift 3.0 project I ran into some problems that I can't solve myself so I would like to ask you guys for a bit of help. I'm receiving the following error:</p>

<p><code>Expression pattern of type 'Int' cannot match values of type UnsafeMutablePointer&lt;Void&gt;?</code></p>

<p>This happens in the following bit of code. (I excluded all irrelevant pieces, so the code might jump from time to time.):</p>

<pre><code>private var PlayerObserverContext = 0

private func commonInit() {
   self.player.addObserver(self, forKeyPath: PlayerRateKey, options: ([NSKeyValueObservingOptions.new, NSKeyValueObservingOptions.old]) , context: &amp;PlayerObserverContext)
}

deinit {
    self.player.removeObserver(self, forKeyPath: PlayerRateKey, context: &amp;PlayerObserverContext)
}

override public func observeValue(forKeyPath keyPath: String?, of object: AnyObject?, change: [NSKeyValueChangeKey : AnyObject]?, context: UnsafeMutablePointer&lt;Void&gt;?) {
switch (keyPath, context) {
    case (.some(PlayerRateKey), PlayerObserverContext):
        true
    default:
        true
}
</code></pre>

<p>The error takes place on the line:
<code>case (.some(PlayerRateKey), PlayerObserverContext):</code></p>

<p>I hope this is enough. If you have any questions or want me to clarify some things a bit more let me know! Thanks in advance. </p>