cast the strings values from input into there correct types