C Sharp Programming/Keywords/as

The keyword casts an object to a different type. It is therefore similar to the =  syntax. The difference is that this keyword returns null if the object was of an incompatible type, while the former method throws a type-cast exception in that case.