If you need to switch post types in WordPress, you can do this quickly using the free plugin “Post Type Switcher” available on the WordPress respository (https://wordpress.org/plugins/post-type-switcher/).
If you need to do this programmatically, it’s also simple to do using some basic SQL. In this video I explain how.
Don’t forget to backup first!