Joining 10-2awg to 12-2awg wire
No.  12 AWG wire is only rated for 20 amperes, and so cannot be protected by a 30 ampere breaker.

The switch also has to be rated 30 amperes. Which should solve your problem, as the 30 amp switch should accept the larger wire.