+ added toInt method