typecast user input