Error: Cannot implicitly convert type 'UnityEngine.Transform' to int.

Use code tags:

Also the exception tells you exactly what the problem is, and should also tell you what line of code it’s at.

You even say you’re doing it… that you’re converting an ‘int’ to a ‘transform’.

Ummm… what do you expect to happen? Transform’s and int’s are nothing alike.