// (the one provided in the attribute 'type' of the tag 'input')
vtkImageData* img = bbGetInputIn();
+
+//EED 2017-01-01 Migration VTK7
+#if (VTK_MAJOR_VERSION <= 5)
cast->SetInput(img);
+#endif
+#if (VTK_MAJOR_VERSION >= 6)
+ cast->SetInputData(img);
+#endif
+
cast->SetOutputScalarTypeToUnsignedShort();
cast->Modified();
cast->Update();