I want to cast an object with the type known at runtime.
For example:
string className= "Model.Menu"; // which is a class in the solution
var bytesAsString = Encoding.UTF8.GetString(requestModel.data);
var decompress = CompressionUtils.Decompress(requestModel.data);
var bf = new BinaryFormatter();
var mappedCollection = (**Menu**)bf.Deserialize(new MemoryStream(decompress)); // here I want to use the above className for casting.