diff --git a/include/eigenpy/eigen-from-python.hpp b/include/eigenpy/eigen-from-python.hpp
index dabb7b9d33f5e45da9981b1fd9d38055ee5a129c..83beda216ff335ae42e7ab291d725d8dbf578c9c 100644
--- a/include/eigenpy/eigen-from-python.hpp
+++ b/include/eigenpy/eigen-from-python.hpp
@@ -285,7 +285,7 @@ namespace eigenpy
   template<typename MatType>
   void* EigenFromPy<MatType>::convertible(PyArrayObject* pyArray)
   {
-    if(!call_PyArray_Check(pyArray))
+    if(!call_PyArray_Check(reinterpret_cast<PyObject*>(pyArray)))
       return 0;
     
     if(!np_type_is_convertible_into_scalar<Scalar>(EIGENPY_GET_PY_ARRAY_TYPE(pyArray)))
@@ -476,7 +476,7 @@ namespace eigenpy
     /// \brief Determine if pyObj can be converted into a MatType object
     static void* convertible(PyArrayObject * pyArray)
     {
-      if(!call_PyArray_Check(pyArray))
+      if(!call_PyArray_Check(reinterpret_cast<PyObject*>(pyArray)))
         return 0;
       if(!PyArray_ISWRITEABLE(pyArray))
         return 0;