             var type:String = types[i].toString();
             if (styleManager.hasAdvancedSelectors() && advancedObject != null)
             {
-                var decls:Array = styleManager.getStyleDeclarations(type);
+                var decls:Object = styleManager.getStyleDeclarations(type);
                 if (decls)
                 {
                     var matchingDecls:Array = matchStyleDeclarations(decls, advancedObject);

        }

        if (styleManager.hasAdvancedSelectors() && advancedObject != null)
        {        
            // Advanced selectors may result in more than one match per type so
            // we sort based on specificity, but we preserve the declaration
            // order for equal selectors.

            styleDeclarations = [];

        // First, look for universal selectors
        var universalDecls:Object = styleManager.getStyleDeclarations("*");
        styleDeclarations = matchStyleDeclarations(universalDecls, object).concat(styleDeclarations);

        // Next, look for type selectors (includes ActionScript supertype matches)
