Ketmen,
The Type Cast or Unflatten from String are the right function to use. Here is the interesting thing if you are getting bad values. How is the TCP being sent? LabVIEW stores all numerics as Big Endian data. If you other program is sending the data as a Little Endian data type, then you will get the right number, just not in the right form. Try using the byte swapping functions on the incomming data to do a full byte swap of all of your data.
Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask