If you’re sure that it is a type of OkObjectResult then cast before using it like below:
var result3 = (OkObjectResult)result.Result; // <-- Cast is before using it.
var result4 = result3.Value; //<-- Then you'll get no error here.
If you’re sure that it is a type of OkObjectResult then cast before using it like below:
var result3 = (OkObjectResult)result.Result; // <-- Cast is before using it.
var result4 = result3.Value; //<-- Then you'll get no error here.