Can I deduct the cost of appraising the real estate?

Yes. This is possible.