Correctly handle type in call to transmogrify