Replace redundant Assert calls with native typehint