How to get Session's value in a class object?
Correct type cast requires round brackets:
Services oldObj = (Services)Session["ServiceObj"];
you should use Services oldObj = (Services)Session["ServiceObj"];
instead of Services oldObj = <Services>Session["ServiceObj"];