Adds DuckTyping library

The interface now uses DuckTyping library to correctly cast the server when it has been built using a different build of the assembly.