         var n:int = validators.length;
         for (var i:int = 0; i < n; i++)
         {
-            var v:Validator = Validator(validators[i]);
-            
-            if (v.enabled)
+            var v:IValidator = validators[i] as IValidator;
+            if (v && v.enabled)
             {
 	            var resultEvent:ValidationResultEvent = v.validate();
 	            

 *  @playerversion AIR 1.1
 *  @productversion Flex 3
 */
public class Validator extends EventDispatcher implements IMXMLObject
{
    include "../core/Version.as";


import mx.managers.SystemManager;
import mx.resources.IResourceManager;
import mx.resources.ResourceManager;
import mx.validators.IValidator;

//--------------------------------------
//  Events
