dyn_cast_or_null should work just the same as dyn_cast does