use C++ casting
Merge pull request #2 from jordi-pages/indigo-devel

use C++ casting