"
Dawud K." -
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.
You can change your user name
here.
There should be no need to cast your "ClientInterface" object to a "Client" if the interface/implementation is designed correctly.
Getting an IllegalArgumentException is certainly a strange error to be getting for this, too... is it possible to post the code around where this error is being thrown?
Thanks! and welcome to the JavaRanch!