The type of fossil that is formed when an organism is buried in sediment then it hardens into the rock is called a cast fossil. It is a fossil that is formed when a living organism dies and decays into a mineral or a rock then leaving a cavity into it. It will look like a mold of the organism.