$servings = 5 cast as xdt:untypedAtomic
    instance of xs:integer: false
    instance of xs:decimal: false
    instance of r:Servings: false

$int5 = 5 cast as xs:integer
    instance of xs:integer: true
    instance of xs:decimal: true
    instance of r:Servings: false

$serv5 = 5 cast as r:Servings
    instance of xs:integer: true
    instance of xs:decimal: true
    instance of r:Servings: true