creating a temp db using a lookup in the form i am creating a temp db from with a field that is not a lookup

creating a temp db using a lookup in the form i am creating a temp db from with a field that is not a lookup

In Criteria left expression is of type BIGINT and right expression is of type STRING and the operator == is not valid

this is what I 

rec  =  TimeDB[ID == Employee_Name];

input.Regular_Hours = (rec.Employee_Name == input.Name2).sum(Regular_Hours);

Employee_Name is a lookup field in the TimeDB
Regular_Hours is the field I am trying to update with the sum of Regular Hours in the TimeDB
Name2 is not a look up in the form i want to update the sum in