title: Pass Object to Sidekiq
body: <p>I tried passing an small object to <code>sidekiq</code>, but it converts it to a hash. This object is a tracking object for mixpanel. I also tried accessing session variables in my <code>Worker</code> but they aren't available there either.</p>
  
  <p>Thoughts?</p>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>MixpanelWorker.perform_async(@mixpanel, 'person', mixpanel_distinct_id, cleaned_params)
  </code></pre>
  
  <p><strong>MixpanelWorker</strong></p>
  
  <pre><code>  def perform(mixpanel_object, type_of_send, distinct_id, event)
      case type_of_send
      when 'person'
        mixpanel_object.people.set(distinct_id, event)
      when 'event'
        mixpanel_object.track(distinct_id, event)
      end
    end
  </code></pre>