moved casting to basic class