SELECT CAST(scope_identity() AS int)