© 2026 Hedgehog Software, LLC
byte[] bytes = Enumerable.Range(0, 256).Cast<byte>().ToArray();
System.InvalidCastException : Unable to cast object of type 'System.Int32' to type 'System.Byte'.