Merge pull request #1470 from ZackerySpytz/OCaml-dynamic_cast-test

[OCaml] Fix the dynamic_cast test