batman-adv: Remove casts from type x to type x