st_as_stars function

convert objects into a stars object