Bugfix: customized lookups cast thier value to field declared type