Which of the following fossil types is best described as forming when minerals replace all or part of an organism's body?
A. a mold
B. a petrified fossil
C. a cast
D. a trace fossil