settings_data.c - casting fixes for MSVC