Open
Description
I think this should produce an integer 2 value.
It would be handy for working with source documents in JSON notation where the source document string representations of numbers could include a mixture of number syntax ("2.0") and integer syntax ("0"). It seems awkward to have to provide more complex type conversions like int(double(document["field"]))
to deal with irregular string values.