Adding cast in petsiiconv.c to correct signedness and suppress warnings