A bit of hack to support MongoDate objects