It is very simple, use the following definition:
operator () { return }
Here, desired type can be built-in data type or user defined data type.
For example: Assume you have two classes one if known as rupee and the other one is paisa.
rupee rupeeObject(5);
paisa paisaObject(rupeeObject); /* This will not work unless you have overloaded type casting operator for paisa class in rupee class.