R600: Replace dyn_cast + assert with cast