Remove useless type conversion from test.