                                 spansRange = false
                                 stop.pointee = true
                             }
-        } as! (Any?, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
+        })
 
         return spansRange
     }

        enumerateAttribute(NSFontAttributeName,
                           in: range,
                           options: [],
                           using: { (object: AnyObject?, range: NSRange, stop: UnsafeMutablePointer<ObjCBool>) in
                            guard let font = object as? UIFont else {
                                return
                            }

                            self.removeAttribute(NSFontAttributeName, range: range)
                            self.addAttribute(NSFontAttributeName, value: newFont, range: range)
                            self.endEditing()
        })
    }
}
