[Git][ghc/ghc][master] Fix subtle bug in cast worker/wrapper