---
spec: JLS
title: "The Java Language Specification"
edition: "Java SE 8 Edition"
java_version: 8
chapter: "Chapter 5. Conversions and Contexts"
section: "5.1.6"
heading: "5.1.6. Narrowing Reference Conversion"
parent: "5.1. Kinds of Conversion"
source: https://docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#jls-5.1.6
id: "5.1.6"
url: https://jvm.obfuscated.software/jls/se8/5.1.6.html
raw: https://jvm.obfuscated.software/jls/se8/5.1.6.md
---

# 5.1.6. Narrowing Reference Conversion

Six kinds of conversions are called the *narrowing reference conversions*:

- From any reference type S to any reference type T, provided that S is a proper supertype of T ([§4.10](4.10.md)).

  An important special case is that there is a narrowing reference conversion from the class type `Object` to any other reference type ([§4.12.4](4.12.4.md)).

- From any class type C to any non-parameterized interface type K, provided that C is not `final` and does not implement K.

- From any interface type J to any non-parameterized class type C that is not `final`.

- From any interface type J to any non-parameterized interface type K, provided that J is not a subinterface of K.

- From the interface types `Cloneable` and `java.io.Serializable` to any array type T`[]`.

- From any array type SC`[]` to any array type TC`[]`, provided that SC and TC are reference types and there is a narrowing reference conversion from SC to TC.

Such conversions require a test at run time to find out whether the actual reference value is a legitimate value of the new type. If not, then a `ClassCastException` is thrown.
