Type resolution for assignment