Another way to say "You can use a castle to live in" is "Castles can be used by you to live in."