Cast to NSURL to silence warning when using Cocoapods

Closes #169