Could you try:
sqlcmd.Parameters.Add("@someid", System.Data.SqlDbType.UniqueIdentifier).Value =
string.IsNullOrEmpty(class.someid) ? System.Guid.Empty : new Guid(class.someid);
If the casting doesn't work. And in your table make sure if this column allows null.
And class.someid
has the correct format for the constructor.
You can check on this link to have an overview.