Updated to handle casts to different types
Merge pull request #17 from krankin/xcode6beta4

Updated to handle casts to different types