Generics in queries is a feature available since Cayenne 3.2. In 3.2 you'd run queries like this, getting type-safe results:
SelectQuery<Some> select = new SelectQuery<>(Some.class);
List<Some> somes = dbContext.select(select);
But there will be 'unchecked' warnings if you are using 3.0. There's no way around this.