Original Post
so basically for a project im working on im trying to create a plugin system, to do this im loading the class as a class object from a class file, then using the java reflection api to see what methods it has and call them. My question, is there any way i can cast a object as a interface that it dosen't implement but i have confirmed it has all the required methods EDIT: I could create a dummy class that implement the interface and invokes the appropriate method object but this is a rather messy solution