This is one of those times where I hang my head in shame and wish for stronger compile-time checking ;)