implemented type casting for agoFB