adds equality and try_convert methods