<div dir="ltr"><div style="font-family:monospace" class="gmail_default">And by all means, add more parameters to foo if you want. For example, if a User.class helps, please do so!</div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default">I just don't want to do anything like this.</div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default">foo("firstName");</div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default">That's stringly typed, and undesirable for my use case.</div></div>