If I pay contractor cash, can I still claim it as expense

I hired someone to do the painting for my rental property. The contractor prefers cash. He will still give me a receipt. If I pay him with cash, I can still claim this as my rental maintenance right?


Also, do I need to give him 1099? If so how? Do I need to get his SSN? Thank you!