Added die(..) call to default case
-Wold-style-cast