A ClassCastException occurs when comparing two types
that are not comparable according the the XPath
specification, using an operator such as "=". For
example, when comparing string and integer.
(Note, this comparison should be allowed in XPath
backwards compatibility mode, but it isn't allowed in
test case added: error232