Expected an array-like object, but found a Variable

One thing I find difficult is understanding the types the pymc3 functions like DiscreteUniform return.

E.g. I can subtract a number from a numpy array which subtracts it from all elements.

When I try to do the same in my model it fails.
How can I do that?

For simple things like these it is hard to find resources.

Thanks Hans