Casting enabling is moved to the main project