casts, consts, and decl order