Fixed an issue with converting non-whitelisted types.