Editable to int in android kotlin code example Example: kotlin change editable to Int int x = Integer.parseInt(R2.getText().toString());