Schema field of type int32. How mondo db identify, whether data is of int or string?

Field of data type int32, stores both int and string data type. How mongodb identify / differentiate between int data and string data. (while showing in bar grap int 60% and string 10% )