Eliminate unnecessary cast exception for every Java class on load.