If we are just interested in one of those specific members, we could simply calculate the offset, and then reinterpret_cast , just like this: Let’s assume we have some code, which relies on getting addresses of struct A typed addresses in integral form: That’s no good style, but this program works.