#include <iostream>
using namespace std;
class Test
{
private:
int value;
public:
Test(int i=0)
{
value = i;
}
int getValue()
{
return value;
}
operator int()
{
return value;
}
};
int main(int argc, char const *argv[])
{
Test t = static_cast<Test>(5);
cout << t.getValue() << endl;
int i = t;
cout << i << endl;
return 0;
}