Error: CS0266 Cannot implicitly convert type 'int' to 'byte'. An explicit conversion exists (are you missing a cast?)
<p>Know I cast a byte to the code that I have commented but I still have the same error</p>

<pre><code>public override bool StartPing(string ip)
{
    base.Init();
    try
    {
        this.sock.ReceiveTimeout = 5000;
        this.sock.Connect(ip, 5055);
        this.PingBytes[this.PingBytes.Length - 1] = this.PingId;
        this.sock.Send(this.PingBytes);
        //this.PingBytes[this.PingBytes.Length - 1] = (byte)this.PingId - 1;
    }
    catch (Exception value)
    {
        this.sock = null;
        Console.WriteLine(value);
    }
    return false;
}
</code></pre>

<p>I'm not that good with setting the format yet so please bear with me.</p>