     
     fileprivate func attributesWithTextColor(_ textColor: UIColor, underlineStyle: NSUnderlineStyle) -> [String: Any] {
         var attributes = attributesWithTextColor(textColor)
-        attributes[NSUnderlineStyleAttributeName] = underlineStyle.rawValue as AnyObject?
+        attributes[NSUnderlineStyleAttributeName] = underlineStyle.rawValue
         
         return attributes
     }

        self.contextLabelData = contextLabelDataWithText(text)
    }
    
    open func attributesFromProperties() -> [String : AnyObject] {
        
        // Shadow attributes
        let shadow = NSShadow()

            shadow.shadowOffset = CGSize(width: 0, height: -1);
            shadow.shadowColor = nil;
        }

        // Color attributes
        var color = _textColor
        if self.isEnabled == false {
            color = .lightGray
        } else if self.isHighlighted {
