Added explicit type casts to avoid warnings when building for 64 bit iOS...

This is how I resolved all the implicit type cast warnings for iOS 64bit.
....