cast phrase to int