object data = "Hello, World!";
if(data is string stringValue)
Console.WriteLine($"The object is a string: {stringValue}");
case string stringValue2:
Console.WriteLine($"The data is a string: {stringValue2}");
Console.WriteLine($"The data is an integer: {intValue}");
Console.WriteLine("Unknown data type");