6.14. Changes to cast semantics
No value of an atomic type different than js:null (or derived) can be cast to js:null. An error err:XPTY0004
is raised instead.
A js:null can still be cast to xs:string or xs:untypedAtomic as specified in the XPath function specification, which leads to its canonical representation "null".