Before C++, I never thought about the cost of values carrying their type. C++ gives you the choice with optional Run-Time Type Information.