The best option is obviously fresh corn kernels whenever you find them. But you can definitely use canned sweetcorn if you like. Make sure you drain them well and pat the kernels with kitchen paper before use. And you can totally go for frozen sweetcorn (as I usually do). In this case, transfer the kernels to a colander and place them under cool running water for a minute, then drain and pat them dry before use.