This extends XPath::Conversion.to_compatible_types so that it can also take XML::Node and XML::Attribute objects as input.