Catch signal type of bytes and convert to int