Nice instanceof replacement - http://nurkiewicz.blogspot.com.au/2013/09/instanceof-operator-and-visitor-pattern.html https://github.com/nurkiewicz/typeof http://interviewquestionjava.blogspot.hk/2014/01/java-data-types-conversion-chart.html How to use reflection to get the size of Primitive - http://marxsoftware.blogspot.com.au/2014/04/programmatic-access-java-types-sizes.html