Convert object to Dictionary