     }
     
     func toFloat() -> Float? {
-        if let number = NSNumberFormatter().numberFromString(self) {
+        if let number = defaultNumberFormatter().numberFromString(self) {
             return number.floatValue
         }
         return nil
     }
     
     func toInt() -> Int? {
-        if let number = NSNumberFormatter().numberFromString(self) {
+        if let number = defaultNumberFormatter().numberFromString(self) {
             return number.integerValue
         }
         return nil
     }
     
     func toDouble(locale: NSLocale = NSLocale.systemLocale()) -> Double? {
-        let nf = NSNumberFormatter()
-        nf.locale = locale
+        let nf = localeNumberFormatter(locale)
+
         if let number = nf.numberFromString(self) {
             return number.doubleValue
         }

        }
    }    
}

    }
    
    func toDate(format: String = "yyyy-MM-dd") -> NSDate? {
        return dateFormatter(format).dateFromString(self)
    }
    
    func toDateTime(format: String = "yyyy-MM-dd HH:mm:ss") -> NSDate? {
