Hi all
How to convert any value as class object.
I am getting error

Cannot implicitly convert type 'object' to 'UserTracking'. An explicit conversion exists (are you missing a cast?)

C# Code:
  1. void Session_Start(object sender, EventArgs e)
  2.     {
  3.         // Code that runs when a new session is started
  4.         try
  5.          {
  6.              UserTracking userTracking = new UserTracking();
  7.              Session["UserTracking"] = userTracking;
  8.              Response.AppendToLog("SessionStart");
  9.          }
  10.          catch
  11.          {
  12.              //Expection
  13.          }
  14.     }
  15.     void Application_PreRequestHandlerExecute(object sender, EventArgs e)
  16.     {
  17.         if (Context.Session != null)
  18.         {
  19.             UserTracking userTracking = new UserTracking();
  20.             userTracking =Session["UserTracking"]; //Error Getting Here :wave:
  21.             if (userTracking != null)
  22.             {
  23.                 //userTracking.AddPage(Request.Url.ToString());
  24.             }
  25.         }
  26.        
  27.     }