Use qobject_cast instead of dynamic_cast
Since KJob is a QObject we can use the more efficient qobject_cast here
Differential Revision: https://phabricator.kde.org/D17678