Minor optimization for getTypedComponent/etc