だと思って

thinking that it is

→ だ
phrase Rare #21,290
thinking that it is Used after a noun or a な-adjective to express thinking or assuming that something is that thing or has that quality. It can also mean treating or imagining something as that thing.
JA: 彼は私を子どもだと思っている。
EN: He thinks I'm a child.

私が大金持ちだと思ってくれては困る。

Don't get the wrong idea that I'm extremely wealthy.

自分の家だと思ってくれ

Make yourself at home.

— 荒野の用心棒 (1964)

私はそれを冗談だと思って、返答しませんでした。

I thought it was a joke, so I didn’t respond.

オモチャだと思って…

I thought it was a toy…

— 天気の子 (2019)

ソンレン今日はツォユンのためだと思って彼女は寂しいのよ

Son Ren, she thinks today is for Tso Yun, so she’s lonely.

— 紅夢 (1991)

素人だと思って馬鹿にするなよ!

Don't look down on me just because I'm an amateur!

— オープン・ユア・アイズ (1997)

友達だと思って信じてたのに

I trusted you because I thought you were my friend.

— レミーのおいしいレストラン (2007)

ケーキが宇宙船だと思ってイケてるだろ?

Think of the cake as a spaceship—it’s pretty cool, right?

— グッバイ、レーニン! (2003)

ほかの隊員たちは“コードR”だと思っては?

How about having the other team members think it’s “Code R”?

— ア・フュー・グッドメン (1992)