global using static System.Console; // just to save noise writing Console. prefix
// Add and remove the "" to change object o between string and int.
object o = "3";
int j = 4;
if (o
is int i
) // <= here be magic ! {
WriteLine($"{i} x {j} = {i * j}");
}
else {WriteLine("o is not an int so it cannot multiply!"); }