Instead of type checking, use polymorphism: `redirect_to [current_user.profile, :dashboard]`

This is why we prefer using objects instead of path helpers.