Use binary_to_integer/1