From C++ best practices

Uses static_cast<> instead of C casting.
More static_cast<>
Merge pull request #3104 from ricardoquesada/static_cast_love

From C++ best practices
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into remove-copywithzone

Conflicts:
	cocos2dx/actions/CCActionInterval.cpp
	cocos2dx/cocoa/CCDictionary.cpp
	samples/Cpp/TestCpp/Classes/NodeTest/NodeTest.cpp