Evaluate all formulas in a Workbook object <p>I want to evaluate all formulas in a Workbook object. I know there are XSSFFormulaEvaluator and HSSFFormulaEvaluator for evaluating formulas in XSSFWorkbook and HSSFWorkbook. But the workbook object I have belongs to Workbook class.</p> <p>I can use something like this,</p> <pre><code>XSSFFormulaEvaluator.evaluateAllFormulaCells((XSSFWorkbook) workbook); </code></pre> <p>Is it ok to use this evaluator? Does it have any side effects to type-casting Workbook to XSSFWorkbook?</p>