add test_to_list

besides the tests fixed a issue with the casting in the common_methods
struct.