as? Operator for Objective-C

SwiftyAs provides similar functionality to the as? operator in Swift, allowing for safer type casts. So how is this accomplished in Objective-C? Tom Adriaenssen:

“SwiftyAs introduces a category on NSObject, providing a readonly block property taking a Class and returning an id. The class represents the desired type.”