ERROR with st_cast.POINTS() and st_cast.GEOMETRY() · Issue #1856 · r-spatial/sf

I am getting the below error linked with the above sf functions: Error in st_cast.POINT(x[[1]], to, ...) : cannot create MULTILINESTRING from POINT In addition: Warning message: In st_cast.GEOMETRY...