hey everybody i'm french so please excuse my bad english . i'm a programmer who's learning kotlin and i'm making my first program with android studio so i want to make a button(add) who when pressed will add the content of two textboxes(imp1/imp2) and write it as a result in a third textbox(result) like a calculator but when i press the button it crashes and close the app
add.setOnClickListener{
result.text = (imp1.text as Int + imp2.text as Int) as CharSequence
}