Promote a numeric value from one type to another Follows XPath 2.0 type promotion rules
The value to promote (should already be validated as fromType)
The source type name
The target type name
The promoted value (or the original value if types match)
Error if promotion is not allowed
Promote a numeric value from one type to another Follows XPath 2.0 type promotion rules