Correction on Swift Test Driven Mocking Objects tutorial

Starter code has this, which will not compile:

NSManagedObject
public func controller(controller: NSFetchedResultsController,
didChangeObject anObject: NSManagedObject, atIndexPath indexPath: NSIndexPath?, forChangeType type: NSFetchedResultsChangeType, newIndexPath: NSIndexPath?)

this will Compile

AnyObject
public func controller(controller: NSFetchedResultsController,
didChangeObject anObject: AnyObject, atIndexPath indexPath: NSIndexPath?, forChangeType type: NSFetchedResultsChangeType, newIndexPath: NSIndexPath?)