How does one test if a conversion between data types happened succesfully without crashing the game?
Say there's a TextEdit the user can write into. They're supposed to write in an integer, however there is nothing physically preventing them from writing whatever else they want, like a string containing non-numerical characters. The optimal outcome is a popup window appearing, telling the user they cannot do that and deleting the invalid value in the faulty TextEdit, instead of the program stopping completely. But for that, a test must be carried out, I suppose. How does one do that?