Add support for try-catch-as-type.