Make BadgeInfoActivity a bit more cast-safe. This should all be moved into IO anyway though.