This can be replaced with `Integer(value, 8)` which will raise an error if `value` cannot be cast to an integer. This removes the need to explicitly throw an error with the following `else` statement.