Been trying to troubleshoot an issue where one of our queries results in the following error message:
System.InvalidCastException: Column is null at Npgsql.Np