fixed warning for nsinteger cast