Fix casting in ransac example.