cppcheck: Clarify expression with parentheses

Change-Id: I71333af38adba1d916138835e28419bb62cd1db4
cppcheck: const_cast instead of C cast

Change-Id: I9b4a01364ff8b8c82fec687ab0cbd73952b3e237