Were Number 13-class 18-inch guns direct forerunners of Yamato's 18.1-inch guns?
Short answerThey were distant ancestors rather than immediate predecessors.
NotesThe earlier gun was a forerunner only in a distant ancestral sense. Similar caliber does not erase the long development gap between the designs, their mountings, and the ships intended to carry them.