Comvert String to integer

Hello All,
I want to look at the input of a text field and not allow a length of more the 48" to be input, but because the text is a string it has no value. Can I convert a string to an integer and then do something like:
If (integer_from_string > 48)
{
page go_to_error_page
}

TIA,
Muggs

Search for covx in the official documentation Instruction Set - Nextion

Kind regards,
Max

@Max Thank you! Perfect!