Cool, I must've missed this page.. well since HL2 is still preloading, I have nothing better to do but look at it!
Code:
if ( my_variable.GetInt() == 42 ) DoSomething();
if ( my_variable.GetFloat() == 42.0f ) DoSomething();
if ( strcmp(my_variable.GetString(), "42")==0 ) DoSomething();
Makes you wonder why they didn't just overload the == operator to use with ints, doubles, and chars