There is no operator>>() for enum. You can implement one yourself:
std::istream& operator>>( std::istream& is, object& i )
{
int tmp ;
if ( is >> tmp )
i = static_cast
Of course, it would be easier if you just cin an integer and cast yourself. Just want to show you how to write an cin >> operator.