Add try_convert which is missing in 1.8.7
Add try_convert. Fixes #5