Typecast model Id so that MongoId's don't break urls