st_raster_type function

get the raster type (if any) of a stars object