avoid casting exception when db provider returns ulong for GetLongScalar method (mysql returns ulong for SelectIdentitySql)