Passing a custom object from a draggable to a droppable?

Passing a custom object from a draggable to a droppable?

As the title says:

I need to attach a custom object to a ui draggable and then retrieve this object when it is dropped onto a droppable (e.g. inside the 'drop' event).

What would be the best way to go about this?

Thanks in advance!