Set the type as the first statement in the case would be slighty better