Type 'AnyObject' does not conform to protocol 'Hashable'
<p>I am converting my existing Objective-C Project to Swift. I am converting a function where i am getting the above error. Please check the bellow codes.</p>

<p>Objective-C</p>

<pre><code>- (IBAction)accessoryButtonTapped:(id)sender event:(id)event
{
    NSSet *touches = [event allTouches];
    UITouch *touch = [touches anyObject];
    CGPoint currentTouchPosition = [touch locationInView:self.tableView];
    NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint: currentTouchPosition];
    if (indexPath != nil) {
        [self tableView: self.tableView accessoryButtonTappedForRowWithIndexPath: indexPath];
    }
}
</code></pre>

<p>And here is the swift codes.</p>

<pre><code>@IBAction func accessoryButtonTapped(sender: AnyObject, event: AnyObject) {
    let touches: Set&lt;AnyObject&gt; = event.allTouches()! // I am getting the ERROR here
    let touch: UITouch = touches.first!
    let currentTouchPosition: CGPoint = touch.locationInView(self.tableView)
    let indexPath: NSIndexPath = self.tableView.indexPathForRowAtPoint(currentTouchPosition)!

    self.tableView(self.tableView, accessoryButtonTappedForRowWithIndexPath: indexPath)
}
</code></pre>

<p>Can anyone please tell me what i am doing wring ?</p>