Small dyn_cast and auto cleanup.