I looked through our code and noticed that we Q_ASSERT pm->getObject<Core::Internal::GeneralSettings>(). I'll leave it this way for consistency. Maybe we should open a PR in order to discuss and unify our usage of Q_ASSERT throughout the project.