molto piu semplicemente

varaibileInt = variabileChar - '0';