Removed old style casts. Update for Xcode 6.