title: Redefine/overload type casting
body: <p>Every object has a toString method inherited from the Object class it extends, which can be overloaded. IS there a way to do a similar thing with objects? Here is what I want to do: 
  int a=n+1; where n is actually an object, but when used as an int has a specific value (eg. specified in the constructor). </p>