module.exports = "(function(e,r,n){var a=n(5894),t=n(2818).enums,i=n(2818).Error;e.exports=function(e,r){if(a.isUndefined(r)||a.isNull(r))return r;var n=r;switch(e){case t.valueType.STRING:a.isString(r)||(n=String(r));break;case t.valueType.NUMBER:if(n=Number(r),isNaN(n))throw new i(r+\" is not a number\");break;case t.valueType.CURRENCY:if(n=Number(r),isNaN(n)||Math.floor(n)!==n)throw new i(r+\" cannot be parsed as currency (must be an integer)\");break;default:throw new i(\"Unknown ViewTag type: \"+e)}return n}})";