         let fontTitle = UIFont(name: "Helvetica Bold", size: CGFloat(self.titleFontSize))
         let fontValue = UIFont(name: "Helvetica Light", size: CGFloat(self.valueFontSize))
         
-        let textStyle = NSMutableParagraphStyle.defaultParagraphStyle().mutableCopy() as NSMutableParagraphStyle
+        let textStyle = NSMutableParagraphStyle.defaultParagraphStyle().mutableCopy() as! NSMutableParagraphStyle
         textStyle.alignment = NSTextAlignment.Left
         let textColor = UIColor.blackColor()
         

                var titleStringToDraw:NSString = NSString(string: storageBarValue.title)
                var positionedTitleRect = CGRectMake(rect.origin.x, rect.origin.y + (self.height/2 - CGFloat(titleFontSize)), rect.width, rect.height)
            
                var titleWidth = countElements(storageBarValue.title) * (Int(titleFontSize/2)+1)
                
                amountOfLineBreaks = Int(ceil(Float(titleWidth) / Float(rect.width)))
                

        let fontTitle = UIFont(name: "Helvetica Bold", size: CGFloat(self.titleFontSize))
        let fontValue = UIFont(name: "Helvetica Light", size: CGFloat(self.valueFontSize))
        
        let textStyle = NSMutableParagraphStyle.defaultParagraphStyle().mutableCopy() as! NSMutableParagraphStyle
        textStyle.alignment = NSTextAlignment.Center
        let textColor = UIColor.blackColor()
        
