use safer/more explicit C++ casts
use safer/more explicit C++ casts

Especially in debug mode.

Change-Id: I431851bd46da0f46fdb5cfaa19c76cb139823fa8

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core