public static boolean check(
            BaseType found, 
            PrimitiveType.Type required, 
            DebugInfo dInfo) {
        
        boolean result;
        if (result = (found == null || /*!(found instanceof PrimitiveType) || */
                !(((PrimitiveType)found).primitive() == required)))
            Logger.logIncompatibleTypes(
                    (found == null) ? "UNKNOWN TYPE" : found.toString(),
                    required.name(), 
                    dInfo.position);
        return !result;
    }