Use size_t rather than casting to vtkIdType
I think this was causing the wrong case to be executed for some builds that used older compilers in 32 bit mode.
I think this was causing the wrong case to be executed for some builds that used older compilers in 32 bit mode.