         
         if let value: NSNumber = parameters.value(forKeyPath: key) as? NSNumber {
             return Float(value)
+        } else if wrappedValue = parameters.value(forKeyPath: key) as? String, let value = Float(wrappedValue) {
+            return value
         }
         
         return nil

    fileprivate func intFromParameters(_ parameters: NSDictionary, key: String) -> Int? {
        
        if let value: NSNumber = parameters.value(forKeyPath: key) as? NSNumber {
            
            return Int(value)
        }
        
        return nil

        
        if let value: NSNumber = parameters.value(forKeyPath: key) as? NSNumber {
            return Double(value)
        } else if wrappedValue = parameters.value(forKeyPath: key) as? String, let value = Double(wrappedValue) {
            return value
        }
        
        return nil
