Add fast-path in TypeCastResolver.convert()