Modified README.
Use dynamic_cast instead of C cast.