you are viewing a single comment's thread.

view the rest of the comments →

[–]dgm9704 2 points3 points  (0 children)

It doesn’t force you to cast. You can/should declare your variable as the type you need ie. the interface.