def Target(target)
      return target if target.is_a?(Target)
      Target.new(target, bot)
    end
def Target(target)
      return target if target.is_a?(Target)
      Target.new(target, bot)
    end
@group Type casts
 Helper method for turning a String into a {Target} object.

 @param [String] target a target name
 @return [Target] a {Target} object
 @example
   on :message, /^message (.+)$/ do |m, target|
     Target(target).send "hi!"
   end
 @since 2.0.0