BUG: getting the staticCastForR propagated to all the (hopefully) right places