Fixes warning about incompatible types in Xcode 6
Fixes warning about NSCopying in Xcode 6