Wrap conversions in try/except