Changed casting getUserProfile