Issue with CAST using linked servers (possible bug?)
Do you have the table definition for the table Detection?  I'm betting that infoFlag might not be set up as a bigint, but rather as a numeric with no decimal points.  You might also make sure that the data type is consistant on all of your servers.