Variable Types: integers vs strings?

K so I got a number input from a input field and I guess that’s in a string form, because when I add a number to that variable, I got the wrong answer.

input = 6
input + 1 = 61

Help me convert the input into an integer, so that I can use it in equations!