DELTASPIKE-617 typedQuery utility method.