Why are you converting a value to integer? You inputting the value into an integer variable.