using System;
public class Program
{
public static void Main()
object? someObject = 24.4;
Console.WriteLine(someObject is double value
? $"someObject type is {value.GetType} and it's value is {value}"
: "someObject has no value");
}