Remove unneeded cast and use a temporary for repeated ones
Remove unneeded cast and use a temporary for repeated ones

Change-Id: I8f8fb4508cb7d093c835e1f00b0d6056c502e378

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