Use ToString and avoid some exceptions