If you know for sure that the object implements a specific interface, you can case your object to that interface and access its members. This is usually faster.
On the other hand, if you are not sure of any implemented interfaces, the you can use Reflection to do this.
See here[
^]. Reflection is very slow and not recommended unless absolutely required.