[[ Cleanup ]] Fix OS X server build with Xcode 6.1.

Fix incorrect casts that were causing build failures while building
server using clang under Xcode 6.1 on OS X Yosemite.