title: Convert a class to Fragment Object
body: <p>How can I cast a class to fragment? I have the following scenario:</p>
  
  <p>Fragment fragment;</p>
  
  <p>Now i want to assign some value to this fragment like:</p>
  
  <p>fragment= SomeClass.class.</p>
  
  <p>How cani type cast it.? Thanks</p>