typesafe_cb: don't use HAVE_CAST_TO_UNION in tests.