getRefersToAs
Returns the contents of refersTo as the specified class, if the class is assignable. Otherwise, it will return null.
Return
the declaration cast to the expected class, or null if the class is not assignable
Parameters
clazz
the expected class