Fix grammar
Use cast<> instead of dyn_cast + assert