Fix casting in ransac example.
Merge pull request #648 from stefanv/ransac_faulty_cast

Fix casting in ransac example.