Are both these sentences correct:
1-It will cost me a lot to do that.
2-It will cost a lot for me to do that.
(I think the meanings are different. In the second one, we don't know if I am the one who is paying the money. Maybe someone else is paying the money. Or maybe someone is paying me to do something.)