native and custom type assertion.