better casting on form checkbox, setting populate flag properly based on if id is set (for create/update)