Yeah, that's why it's called a stopgap solution.

In any case you'll need to know the type (where possible) in order to know which operations are defined on it.