String.to_integer conversion

Thank you so much … it was a life saviour. So it works like this now

if Integer.parse("123a4") == :error do
    false
else
    true

and it works perfectly.