In addition to ovinomancer's points above I also disagree.
To say "spellcasting is over by the time the first beam is shot" is generally untrue. When the cast a spell action/bonus/reaction is used then casting a spell in 5e includes the preamble, finger waggling, components, targeting, effects...