Possible Duplicate:
Direct casting vs 'as' operator?
as doesn't throw an exception, but wouldn't it result in a NullPointerException later? doesn't it make it harder to debug?
Possible Duplicate:
Direct casting vs 'as' operator?
as doesn't throw an exception, but wouldn't it result in a NullPointerException later? doesn't it make it harder to debug?