Updated byte to long and long to byte conversion