Check out example codes for "kotlin change editable to Int". It will help you in understanding the concepts better.

Code Example 1

int x = Integer.parseInt(R2.getText().toString());

Learn ReactJs, React Native from akashmittal.com