Added type safe versions for aggregation operations $match and $sort