Fixes issues with Chrome/V8 ToT which no longer has a cast.