Incompatible classes

An object handle was used that does not match (or is not an ancestor of) a required class for a particular operation, or if you’re using the FOREACH statement, the elements of the specified collection cannot be cast to the type of the loop variable. This error is always accompanied by the “Class class name is not an ancestor of class name” informational error.