Solution:To be of a similar nature.For ex:- "Despite their different backgrounds, John and Mark are cut from the same cloth—both hardworking and always ready to lend a hand."
E.g. Rohan and Raj, both passionate about art and literature, are cut from the same cloth.