A cgi perl script i'm using calls a C program that uses 8 bit integers (unsigned long long int). The return values from this program are then passed back through cgi to a program that interfaces with it. This program, written in C, can only handle unsigned integers - my question is that is there an easy way to typecast to a 4 byte integer in the cgi (modifying the original program or the interfacing program is not an option)? Or do i have to write a math function to fudge it myself?