title: Modifying the result from ActionExecutedContext inside OnActionExecuted in web api asp.net core
body: <p>I am writing <code>custom filter</code> in my <code>Web API</code> and there I want to modify the result of <code>ActionExecutedContext</code> inside the <code>OnActionExecuted</code> method.</p>
  
  <p>I got the result type as <code>OkObjectResult</code> as the <code>action method</code> is returning <code>IActionResult</code>.</p>
  
  <pre><code>public void OnActionExecuted(ActionExecutedContext context)
  {        
      var myResult = context.Result; 
      //Type of myResult is OkObjectResult          
  }
  </code></pre>
  
  <p>So here how can I convert this <code>OkObjectResult</code> to my model <code>Object</code>, So that I can use the <code>properties</code> and manipulate the values.</p>
  
  <p>Appreciated any suggestion. </p>