Made implicit typecasts explicit to eliminate compiler warnings

Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.2.0
Target: arm-apple-darwin13.2.0