Here you can find the source of cast(Class c)
static String cast(Class c)
//package com.java2s; //License from project: Open Source License public class Main { static String cast(Class c) { if (c.isPrimitive()) { return ""; }//from www. java2 s. co m return "(" + c.getCanonicalName() + ")"; } }