Added example of using the asXxx() methods.