The c# as operator is used to convert between compatible reference or nullable types. It is similar to a cast operation, except that it will set the result of the conversion to null for a failed conversion, rather than throwing an exception.