this conversion is aligned with 2 more asserts few lines above. Also I personally prefer to not show user any exceptions :) we might write them to log, but not show in UI. And users shouldn't go to browser console to find them there. Caller code will catch exception and show user friendly message instead. For you as a developer, the latter will be more handy to see in logs rather than longer description without details.