Can you castle over a bishop?

Can you castle over a bishop? You are not allowed to castle through check! White is not allowed to castle through the bishop’s “check” on f1. The black bishop on a6 is attacking the f1-square next to the white king. To castle, the white king would have to cross over this square which is not allowed.

You are not allowed to castle through check! White is not allowed to castle through the bishop’s “check” on f1. The black bishop on a6 is attacking the f1-square next to the white king. To castle, the white king would have to cross over this square which is not allowed.