Core: Get rid of a cast in JitRegCache