public static < C > C getInstanceOf ( Object argument , Class < C > expectedClass , String name ) { isInstanceOf ( argument , expectedClass , name ) ; return expectedClass . cast ( argument ) ; }
due to cast in return