It will probably never be possible to pass any object as url parameter. However, there are multiple way to achieve what you need.
Write the object into the UI or Session State, and read it from there again after the navigation.
Pass the id of the object as the url parameter, and load it from db again in the setParameter method of the navigation target using the given id. [example]
(https://stackoverflow.com/a/54443320/3441504)