Take a look at the image. You will see I retrieve a boolean value from the IDataReader. But calling IdataReader..GetBoolean() throws that error: The specified conversion is not valid.
While Convert.ToBoolean(drDatosDco.GetValue(6)) works fine.
at System.Data.SqlClient.SqlBuffer.get_Boolean()
at file.cs:line 54
The column data type in the database is bit with value 1.

The problem wasn't
IdataReader. The table type is abitbut the information is coming from astored procedurewhere they cast thebittotinyint.As @Flydog57 said in the comments above
So the problem was the cast from the
bittotinyint.