If it's not a heritage or heirloom piece, I would run it though a self cleaning cycle in the oven. They CAN crack if you do that, they CAN warp when you do that.
The odds are very very low that they will do either. I bring them up to a very high heat on the stove top and get the oven hot first.
Step 1, turn on oven. Heat to 500.
Step 2, heat up pan. Start on mediumish heat and let it go about 5 minutes. Turn heat up to high for a minute or 2.
place hot pan in oven, run through self cleaning cycle.
You can also use easy off oven cleaner (the one with harsh chemicals (maybe lye???) and soak it in a trash bag.
After it cools, preferably while it's still slightly warm (the untreated cast iron will begin to rust almost as soon as it cools) apply a super thin coating of oil and bake it in the oven. Depending on the oil you use determines the time/temp.
canola oil is what I use. 45 minutes at 450. The layer of oil has to be super thin, almost dry. like a half dozen drops will do the inside and outside.