@SuppressWarnings("unchecked")
    @Override
    public <P> Q from(CollectionExpression<?,P> target, Path<P> alias) {
        return (Q) queryMixin.from((Expression) Expressions.as((Path) target, alias));
    }
{@code JPAQueryBase} is a base Query class for JPA queries

@param <T> result type
@param <Q> concrete subtype

@author tiwe
querydsl-jpa/src/main/java/com/querydsl/jpa/JPAQueryBase.java