Use cast instead of resolve.