The depositions taken under the commission may be read in evidence by either party on the trial if the court finds that the witness is unavailable as a witness within the meaning of Section 240 of the Evidence Code. The same objections may be taken to a question in the interrogatories or to an answer in the deposition as if the witness had been examined orally in court.