Binary Confusion

Hi all,

I have a rather vexing problem. I am trying to read in a karel++ .wld (world) file which should be a list of integers stored in 32 bit big-endian format. So after I got this code running it is printing out numbers with decimals in them. How can this be? I tried attaching the world file but couldn't do it.