Change ListOfTypes.resolveTypes to use instanceof.

Previously it would try to cast and catch an exception.

Change-Id: I57e0e29b5c6243654634e7d329ed8cdaa4784c3b
1 file changed