Casting from parent class to child class

In reply to manik16:
Where do main_base_obj_1 and child_obj_2 get their handles?

I would really help if you created a self-contained example of what you are trying to do.