custom skill cost

I am trying to change the mp/tp cost of skills based on the class using yanfly skill core. How do I check for the class of the actor using the skill.
example
Code:
<Custom MP Cost>
if(class==mage){
cost = 2
}
</Custom MP Cost>

looking for correct syntax
Look in this thread:
https://forums.rpgmakerweb.com/index.php?threads/rpg-maker-mv-script-call-list.46456/
Got some help on the discord.
Code:
user._classId == id
this seems to be the code for checking the user class

Original thread: https://forums.rpgmakerweb.com/threads/custom-skill-cost.107706/