private void VisitTake(ConstantExpression constantExpression) { //Don't have to worry about the cast failing, the Take() extension method only takes an int luceneQuery.Take((int)constantExpression.Value); }