In Sweden, namesakes are casual. Adults; including teachers, principals, and doctors, are most often referred to by their first name. If someone prefers to be referred to more formally, they will quickly tell you.