typesafe_cb: fix up (and test!) cast_if_any.