Fixed type warnings when compiling for 64-bit

Type-conversion warnings appear when compiling for 64-bit in the latest (beta) version of Xcode