[jit] Reenable the more efficient cast code in gshared methods.