Check out example codes for "c# quick "is" "as"". It will help you in understanding the concepts better.

Code Example 1

if (randomObject is TargetType tt)
{
    // Use tt here
}

Learn ReactJs, React Native from akashmittal.com