Better type checking, get() for structs is broken