added handling of value._id (String) being cast to ObjectId