//@TODO: Factor this into the type system public static StackValue ClassCoerece(StackValue sv, Type targetType, Core core) { //@TODO: Add proper coersion testing here. if (targetType.UID == (int)PrimitiveType.kTypeBool) { return(StackUtils.BuildBoolean(true)); } return(sv.ShallowClone()); }