Usually the case when one wants to change a field type to another, for instance the original collection may have "numerical" or "date" fields saved as strings:
{
"name": "Alice",
"salary": "57871",
"dob": "198...