Read int/uint without throwing error unless necessary.