In my current project I often want to find if `uby...
# getting-started
c
In my current project I often want to find if
ubyte == 0u
, but I keep having to do
ubyte == 0u.toUByte()
. Can I avoid this? I tried this extension function, but it is shadowed by the existing `.equals()`:
Copy code
fun UByte.equals(uint: UInt): Boolean {
    return uint < 0xFFu && this == uint.toUByte()
}