Cascade Changes in permissions tab generates ClassCastException in Oracle 12c
Steps to reproduce
1-Navigate to System> Users
2-Go to permissions tab and give full permission to any children (Joe Contributor)
3-Click "Cascade Changes ?” and Apply Changes

4-You will see the error msj in the UI: "An unexpected system error occurred.:Unable to close Hibernate Session" and the logs https://gist.github.com/shaydotcms/98b117df4ee0f88880c212ed568c5c1b
5-The permissions are applied to the user, even though this error.
Tested in master-3.6 // Mac OS 10.10 // Oracle 12c
PR: https://github.com/dotCMS/core/pull/9563
Passed QA. Cascade permissions not throwing errors in Oracle Tested in master-3.6 // Mac OS 10.10 // Oracle 12c