changed type of var myValue

changed byte to int myValue