This potentially causes `$countQuery->setHint([false, 'Doctrine\ORM\Tools\Pagination\CountWalker']);`
The cast only is not enough.