Fix some downcast warnings and reduce scope of variables
Fix some downcast warnings and reduce scope of variables

Change-Id: Ica5f5947f37207c9dd2e51b7903fad52dd4836fd

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