Hacker News new | ask | show | jobs
by grey-area 4603 days ago
Isn't the idea behind interfaces that you add whatever methods you need to use to the interface? If that's the case you don't need or want to cast, you can just assume that the object given to you conforms to that interface...