note in #1153 there is now `getConfigRaw` on `Entity` to avoid this need for a cast (and this line has been changed there)