Casts for XCode 5.1.