Fixed shadowing in Local/Cast.hs