Comparison of astrospheres around cool and hot stars