Replaced assertType() with assertInternalType()