For example, if complex types are mapped to classes and the relationship between complex types and element types is mapped to inheritance, then the classes corresponding to all element types derived directly or by extension from a complex type can be cast to the class of that complex type.