Fixed warnings with Incompatible pointer types and crash from Key value coding-compliance issue.
Merge pull request #1 from nicksuch/master

Fixed warnings