Replaced some runtime casts in hittable with interfaces.