Added debug print for casting int/byte to enum