Code Analysis ReferenceFixesCS0077On this pageCS0077PropertyValueTitleThe as operator must be used with a reference type or nullable type ('type' is a non-nullable value type).SeverityErrorCode FixesReplace as expression with cast expressionSee AlsoOfficial Documentation