add toInt method to scenarioWorkflow