Make it possible to create pastlink from a object