Add types test.
Remove unnecessary uncast from string.