title: OkObjectResult to Model type conversion
body: <p>In my project, I have a situation where a get method's return type is <strong>OkObjectResult</strong></p>
  <pre><code>public IActionResult GetById(int Id)
  {
  ...
  return Ok(returnObj);
  }
  </code></pre>
  <p>I have to invoke it in another place &amp; convert it into the model type of that method.</p>
  <pre><code>public IActionResult AnotherMethod(int Id)
  {
      ...
      var data = (Model)GetById(Id); //casting
      return Ok(returnObj);
  }
  </code></pre>
  <p>I have used <strong>casting</strong> but it shows error in the output <strong>Unable to cast object of type 'Microsoft.AspNetCore.Mvc.OkObjectResult' to type 'Entities.Model'</strong>.</p>
  <p>Is it possible to convert it in the model type somehow?</p>