Change variable type