add toInt method to orderStatus