issue #2387: Using static_cast instead of C style cast in iteration of CCArray.
issue #2387: Using static_cast instead of C style cast while iterating CCDictionary.
Merge pull request #3111 from dumganhar/iss2387-static_cast-love

issue 2387: Using static_cast instead of C style cast while iterating CCDictionary and CCArray.