diff --git a/X10D/src/BooleanExtensions.cs b/X10D/src/BooleanExtensions.cs
index 2286b68..4c5f9e1 100644
--- a/X10D/src/BooleanExtensions.cs
+++ b/X10D/src/BooleanExtensions.cs
@@ -81,7 +81,7 @@
/// Returns 00000001 if is , otherwise 0000000.
public static byte ToByte(this bool value)
{
- return value ? (byte)1 : (byte)0;
+ return (byte)(value ? 1 : 0);
}
///