diff --git a/BeefLibs/corlib/src/Type.bf b/BeefLibs/corlib/src/Type.bf index 0420a43d..15263972 100644 --- a/BeefLibs/corlib/src/Type.bf +++ b/BeefLibs/corlib/src/Type.bf @@ -630,7 +630,7 @@ namespace System public virtual bool IsSubtypeOf(Type type) { - return type == this; + return type == this || (type.IsTypedPrimitive && type.UnderlyingType == this); } public virtual Result GetField(String fieldName)