Parse integer into int value