Coded solution to number 2, XCode claims my solution has an implicit conversion from a long to an int. I believe this will be fine.