c# quick "is" "as" code example Example: c# quick "is" "as" if (randomObject is TargetType tt) { // Use tt here }