title: Declaring Byte in Kotlin does compile-time error 'The integer literal does not conform to the expected type Byte'
body: <p>As seen another question in <a href="https://stackoverflow.com/questions/33023949/0xff0000ff-an-integer-literal-does-not-conform-to-the-expected-type-kotlin-int">0xFF0000FF An integer literal does not conform to the expected type kotlin.Int</a></p>
  
  <p>I declaring value 0xFF as Byte</p>
  
  <p><code>val b:Byte = 0xFF</code></p>
  
  <p>receiving <strong><em>The integer literal does not conform to the expected type Byte</em></strong> compile error</p>
  
  <p>Since I have clue about <code>kotlin.Byte</code> <strong>is signed byte</strong></p>
  
  <p>How to declaring Byte in Kotlin with <code>0x00</code> - <code>0xFF</code> unsigned byte just like <a href="/questions/tagged/.net" class="post-tag" title="show questions tagged &#39;.net&#39;" rel="tag">.net</a> <code>Byte b = 0xFF</code> ?</p>
  
  <p>.</p>
  
  <p>.</p>
  
  <p>If you want instant compiler for testing and answer:</p>
  
  <p><a href="http://rextester.com/l/kotlin_online_compiler" rel="noreferrer">rextester</a> , <a href="https://try.kotlinlang.org/" rel="noreferrer">try.kotlinlang.org</a></p>