Add explicit casts to external C function

This allows compiling the example (ModelicaByExample.Functions.Interpolation.IntegrateInterpolatedExternalVector) with a tool that uses stricter compiler flags.