[Git][ghc/ghc][wip/andreask/ticked_joins] Use the same logic for casts, see Note [Quasi join points]