cast dates to MongoDate