diff --git a/BeefLibs/corlib/src/Reflection/Convert.bf b/BeefLibs/corlib/src/Reflection/Convert.bf index 8c019151..e8a2032c 100644 --- a/BeefLibs/corlib/src/Reflection/Convert.bf +++ b/BeefLibs/corlib/src/Reflection/Convert.bf @@ -94,6 +94,9 @@ namespace System.Reflection int64 intVal = ToInt64(variant); switch (type.[Friend]mTypeCode) { + case .Boolean: + bool val = intVal != 0; + return Variant.Create(type, &val); case .Float: float val = (.)intVal; return Variant.Create(type, &val);