Fixes #6285 - Settings API does not parse incoming values to correct data type