Casting to a long64 does not match the types defined as acceptable for table workspaces. TableColumn.cpp indicates that int64_t should be used instead.