Another example of as(...) used for easily extensible APIs