Fixed casting warnings. Added condition to only log if running on simulator or debug build.
Merge pull request #1 from embedcard/master

Fixed casting warnings. Added condition to only log if running on simula...