I want to implement a generic method that returns a value containing depending on the interface the object has. However cannot figure out how to do it, I\'ve looked at typeof an