fix warning on primitive type casts

use NSNumber instead of format specifiers for
changing primitive to a string
adjust so that the form looks the same on ios6 & 7