Why would it guarantee that ? It's a schema less database. It's not supposed to do that.
And my point is that if you query a single document and the field is a number then it will be returned as a number i.e. it physically stores and understands numbers.