Fixed some MSVC warnings in DSF related classes

They have some implicit narrowing conversions that generate warnings in MSVC.