AmsConnection: add explicit casts to please MSVC
AmsConnection: add explicit casts to please MSVC

Well, MSVC is unable to analyse the dataflow so we are forced to
explicitly cast, if we want to keep the warning noise low on MSVC
builds.

Signed-off-by: Patrick Bruenn <27dd71a6a4a167461f53ec06010a2a08d399a527@beckhoff.com>

Beckhoff/ADS,Beckhoff/ADS,Beckhoff/ADS,Beckhoff/ADS