# File lib/cim/variant.rb, line 31
    def == v
#      $stderr.puts "<#{@type}>#{self} == #{v.class}"
      return false unless self.is_a?(v)
      case v
      when NilClass then     @value.nil?
      when FalseClass then   !@value
      when TrueClass then    @value
      when String then       @value == v
      when Integer then      @value == v
      when Float then        @value == v
      when CIM::Variant then @value == v.value
      else
        false
      end                       
    end