Null check
if (maybe is int number)
{
Console.WriteLine($"The nullable int 'maybe' has the value {number}");
}if (maybe is int number)
{
Console.WriteLine($"The nullable int 'maybe' has the value {number}");
}VS
if(maybe != null)
{
Console.WriteLine($"The nullable int 'maybe' has the value {maybe}");
}if(maybe != null)
{
Console.WriteLine($"The nullable int 'maybe' has the value {maybe}");
}