Resolve "Hooks narrow cast types"

Open Julius Athenstaedt requested to merge jathenst/280-hooks-narrow-cast-types into master

Closes #280

Merge request reports