The component you're seeking to create and its eventual application will effect which casting process to use.