Using views to display content comparing users id
This can be achieved using contextual filters in views. Here are the steps:


In the views edit page click on Advanced section.
Click on the Add button corresponding to "Contextual Filters"
Search for your custom field in your custom content type and add it.
In the configure contextual filter which appears make the following changes.
Under "When the filter value is not in the url" section, select the option "Provide default value". In the type select list, select the option "User ID from logged in user".

Save the changes.