# File rparsec/misc.rb, line 57
  def check_arg_type expected, obj, mtd, n=0
    unless obj.kind_of? expected
      raise ArgumentError,
        "#{obj.class} assigned to #{expected} for the #{nth n} argument of #{mtd}."
    end
  end