fix issue 10479 - cannot pass implicitly to base class casted result to
out contract by ref
Merge pull request #2261 from hpohl/10479

fix issue 10479 - cannot pass implicitly to base class casted result to out contract by ref