Moved type conversion from viewmodel to storageWindows