code: public <T> DomainObjectMatch<T> TO(Class<T> domainObjectType) {
  		TraversalExpression te = (TraversalExpression)this.astObject;
  		DomainObjectMatch<T> ret =APIAccess.createDomainObjectMatch(domainObjectType,
  				te.getQueryExecutor().getDomainObjectMatches().size(),
  				te.getQueryExecutor().getMappingInfo());
  		te.getQueryExecutor().getDomainObjectMatches().add(ret);
  		te.setEnd(ret);
  		QueryRecorder.recordAssignment(this, "TO", ret, QueryRecorder.literal(domainObjectType.getName()));
  		return ret;
  	}
docs: End the traversal of the domain object graph matching a specific type of domain objects
  @param domainObjectType
  @return a DomainObjectMatch