#include <iostream>
using namespace std;

struct Base{
	int foo = 1;	
};
struct Derived : public Base{
	int bar = 2;
};

int main() {
	Base b;
	
	Derived *d = reinterpret_cast<Derived*>(&b);
	
	cout << d->bar << endl;
	
	
	return 0;
}