remove some typeasserts that were causing severe performance issues