Assert statement modifies 'mType'.
Merge pull request #2558 from Xander84/master

Assert statement modifies 'mType'. [ci skip]