Code Analysis ReferenceAnalyzersRCS1172On this pageRCS1172: Use 'is' operator instead of 'as' operatorPropertiesPropertyValueDefault SeverityWarningMinimum language version-ExamplesExample #1diagnostic.csif (x as string != null){}fix.csif (x is string){}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers