     var parameters = [String: [String]]()
     
     for (parameterName, parameterValue) in JSONParameters {
-        if parameterValue.type == .String {
+        if let parameterType = parameterValue.type as? String {
             parameters[parameterName] = [parameterValue.stringValue]
         }
-        else if parameterValue.type == .Array {
+        else if let parameterType = parameterValue.type as? Array<Any> {
             var values = [String]()
             for (_, value) in parameterValue {
                 values.append(value.stringValue)

        arr.append(name as AnyObject)
        arr.append(unravelParameters(parameters: self.parameters) as AnyObject)
        arr.append(valueType as AnyObject)
        arr.append("tel:" + (value as! String))
        return arr
    }
}

        vendorProperties = [VendorProperty]()
    }
    
    public func asJSON() -> String {
        var repr = [AnyObject]()
        repr.append("vcard" as AnyObject)
        
