Be more explicit in casts of generated bindings