Is there a way to not break connections when changing a variable type?

Considering how blueprints work, and they can get pretty squirrely, is there a way to change a variable type and not have it break all connections?

The best way to do it now is:

  1. search for all instances
  2. add reroute nodes at the beginning and end to mark where its supposed to go
  3. change your variable
  4. go and reconnect everything

Wouldn’t it be way better to just give a compiler error that “Input variable does not match expected type.”?

There’s no way to do this; yes engine could invalidate the input value instead of auto destroying pins and force us to reconnect everything again.