I've seen this in the wild when looking into a +5% runtime regression.
I was hoping that this would fix it, but it doesn't.
I'm not certain whether this is always beneficial?
But i'm actually mainly interested in the case where we already compute (y+32) (see last test),
so if we aren't okay with this in general, i can try restricting it to getNodeIfExists().
Please can you rebase this? I've tried to cleanup some of the repeated casts